package com.wanmait.meteor.service.impl;

import com.wanmait.meteor.mapper.CollectMapper;
import com.wanmait.meteor.pojo.Collect;
import com.wanmait.meteor.service.CollectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CollectServiceImpl implements CollectService {
    @Resource
    private CollectMapper collectMapper;


    @Override
    public void insert(Collect collect) {

    }

    @Override
    public List<Collect> findAll() {
        return null;
    }

    @Override
    public void update(Collect collect) {

    }

    @Override
    public Boolean selectIsCollect(Integer meetId, Integer userinfoId) {

        return collectMapper.selectIsCollect(meetId,userinfoId);
    }

    @Override
    public void toCollect(Integer meetId, int userinfoId) {
        collectMapper.toCollect(meetId,userinfoId);
    }

    @Override
    public void delCollect(Integer meetId, int userinfoId) {
        collectMapper.delCollect(meetId,userinfoId);
    }
}
